
--ngx.header.content_type = "text/plain"

local remote_addr = ngx.var.remote_addr
local client_ip = ngx.req.get_headers()["X-IS-CLIENT-IP"]

if nil == client_ip then
    ngx.req.set_header("X-IS-CLIENT-IP", remote_addr)
end
